All Questions
Tagged with raspberry-pisystemd
67 questions
-1votes
3answers
129views
Debian setup for systemd networking.service and NetworkManager.service
My system has a single interface: wifi via wlan0. NetworkManager is the default. However, the system has several "networking services" enabled. Following is a list (the default) of the ...
0votes
1answer
259views
Controlling what services are included in a systemd "slice"
I've re-written this opening paragraph... trying to hide my disdain for systemd. I'll settle for saying that I find systemd's "logic" baffling, and let it go at that. To get to the question: ...
0votes
1answer
472views
Error: Systemctl Failed to enable unit: Cannot alias service
This was previously working just fine, but a failed micro-sd card on a Raspberry Pi Zero W forced me to reinstall the system. The old system was running on an older release of the OS, so that could ...
0votes
1answer
96views
Systemd fails to restart a Python script with exit(0)
I have a working python script and systemd service script. But somehow it is not working the way I wanted it. The python script prints time every 5s but stops with exit(0) at first second of a minute. ...
0votes
0answers
179views
how to stop linger getting enabled
I have no idea why anybody thought "linger" was a good idea but I spend all my time, when setting up systems, turning it off. On a Raspberry pi (bookworm) I recently had need to do: # ...
0votes
1answer
1kviews
Display images using fbi on startup using systemd
I can successfully display images using the following command: sudo fbi -T 1 /home/pi/photo-screen/photos/*.jpg -t 4 I now want to start a slide show of those pictures as soon as the Raspberry PI ...
0votes
1answer
6kviews
Why did my service become masked?
I've provisioned a bunch of RPis with a systemd service that runs an instance of chromium-browser in kiosk mode, but on a few seemingly random devices it doesn't run. I checked the status just by ...
0votes
1answer
241views
Start of DHCP Client without any DHCP server delays the start of other services for a long time
On Bullseye (Debian) I have this in /var/log/syslog when no DHCP server is present on the network. Jul 10 10:45:05 localhost systemd[1]: Started DHCP Client Daemon. Jul 10 10:45:05 localhost dhcpcd[...
1vote
1answer
337views
ethercat install on ubuntu 23.04 RPi gives modprobe invalid argument error/empty MAC address?
Installing ethercat from https://gitlab.com/etherlab.org/ethercat.git to an RPi 3B v1.2 running Ubuntu Server 23.04 (32-bit). First time working with Ubuntu; more familiar with Raspbian. Spent a long ...
1vote
1answer
156views
Where to place config file created by systemd
I have a systemd service running on a Raspberry Pi that reads the configuration from EEPROM and converts it into the .env format. This allows other programs to easily parse the configuration later on. ...
0votes
0answers
552views
Sharing Ethernet connection with Wifi and USB ethernet using systemd-networkd
I am running Raspbian 11 on a Raspberry Pi 4 and have connected a USB Ethernet NIC. My goal is to allow clients to connect via Wi-Fi (wlan0) or the USB Ethernet adapter (eth1), then have the Raspberry ...
1vote
0answers
606views
journalctl -b -1 always shows the same log?
When reading the manual for journalctl I get the impression that -b -1 will show the boot one before the most recent. When I use it I'm always shown the same log. Did I misunderstand something? I've ...
3votes
1answer
2kviews
Systemd limit StandardOutput file size
I created a systemd service on my Pi 4 that writes std output to a file using StandardOutput=file:/file/location/file.log. Is there a way to limit the file size of the log file to prevent it from ...
1vote
0answers
90views
ifup fails when ran in systemd service, debian 10 (raspian)
I have a little script named wificheck: ifdown --force $1 sleep 4 ifup $1 Set it up in a systemd. If I run it as sudo ./script.sh wlan0 works fine, but if I run the process sudo systemctl start ...
0votes
0answers
436views
Logs are disappearing
I have written a program that logs to stderr. I run it as a service with systemd. Here's the unit file: [Unit] Description=Mi Scale Translator After=network.target [Service] Type=simple Restart=...